/*
 * IterationStatement.cpp
 *
 *  Created on: 06/05/2010
 *      Author: rodolfo
 */

#include "IterationStatement.h"

IterationStatement::IterationStatement ( StmType _kind ) : Statement ( _kind )
{

}

IterationStatement::IterationStatement ( Expression *condition, Statement *command, StmType _kind ) :
        condition ( condition ), command ( command ), Statement ( _kind )
{
}

IterationStatement::IterationStatement ( Statement *command, StmType _kind ) :
        command ( command ), Statement ( _kind )
{
}

IterationStatement::IterationStatement ( Expression *condition, StmType _kind ) :
        condition ( condition ), Statement ( _kind )
{
}

IterationStatement::~IterationStatement()
{
	if ( condition != 0 )
	    delete condition;
	if ( command != 0 )
	    delete command;
}
